﻿
using KinonekoSoftware.Studio.Components;
using KinonekoSoftware.Studio.Galleries;
using KinonekoSoftware.Studio.Pages.Composes;
using KinonekoSoftware.Studio.Pages.Shenanigans;

namespace KinonekoSoftware.Studio.ViewModels
{
    partial class AppViewModel
    {
        
        protected override TabViewModel GetStartupViewModel()
        {
            if (IsLaunch)
            {
                return IsLoaded ? new RepositoryGalleryViewModel() : new RepositoryCreationViewModel();
            }

            //
            // 如果：app.IsLaunch = false，则代表当前应用未加载
            // 未加载的情况下，将弹出 StartupViewModel 界面，实现应用的初始化。
            return new StartupViewModel();
        }

    }
    
    partial class StartupViewModel
    {
        

        [Conditional("DEBUG")]
        private void Debug()
        {
            GoTo<XGInstanceEditorViewModel>();
            GoTo<SketchViewModel>();
        }
    }
}